package main

import (
	"fresh-food/api/router"
	"fresh-food/inits/config"
	"fresh-food/inits/initialize"
	"fresh-food/mysql"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	config.Init()
	initialize.Nacos()
	initialize.Mysql()
	initialize.Redis()
	initialize.Zap()
	mysql.MysqlInit()

	router.LoadRouter(r)
	r.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
